package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ProjectConstructionInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ProjectConstructionInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 * A.8-1 项目施工信息表  Mapper接口
 *
 * @author admin
 * @since 2025-08-08
 */
@Mapper
public interface ProjectConstructionInfoMapper extends BaseMapper<ProjectConstructionInfo> {
    /**
     * 查询A.8-1 项目施工信息表
     *
     * @return
     */
    List<ProjectConstructionInfoVO> selectProjectConstructionInfoList(@Param("query") ProjectConstructionInfoVO vo);

    IPage<ProjectConstructionInfoVO> pageList(@Param("page") Page<ProjectConstructionInfoVO> page, @Param("query") ProjectConstructionInfoVO vo);

    List<ProjectConstructionInfoVO> getDataForExport(@Param("query") ProjectConstructionInfoVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ProjectConstructionInfoVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    IPage<ProjectConstructionInfoVO> ConstructionUnitByUnitCode(@Param("page") Page<ProjectConstructionInfoVO> page, @Param("query") ProjectConstructionInfoVO query);
}
